package com.qfedu.mall.beans.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "shopping_cart")
public class ShoppingCart {
    /**
     * 购物车id
     */
    @Id
    @Column(name = "cart_id")
    private Integer cartId;

    /**
     * 商品ID
     */
    @Column(name = "product_id")
    private Integer productId;

    /**
     * sizeid
     */
    @Column(name = "sku_id")
    private Integer skuId;

    /**
     * 用户id
     */
    @Column(name = "user_id")
    private Integer userId;

    /**
     * 购物车商品数量
     */
    @Column(name = "cart_num")
    private Integer cartNum;

    /**
     * 添加购物车时商品价格
     */
    @Column(name = "product_price")
    private Double productPrice;

    /**
     * 选择的商品的属性
     */
    @Column(name = "sku_props")
    private String skuProps;

}